def time(min):
    print '%i:%i' % divmod(min,60)

min=raw_input()
time(int(min))
